package com.chinairi.mall.service;

import com.chinairi.mall.controller.viewobject.ApproveDbIdVO;
import com.chinairi.mall.controller.viewobject.FourNewGoodsVO;
import com.chinairi.mall.model.FourNewGoods;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 四新商品表 服务类
 * </p>
 *
 * @author gsl
 * @since 2020-09-13
 */
public interface IFourNewGoodsService extends IService<FourNewGoods> {

    /**
     * 新增商品
     *
     * @param fourNewGoodsVO
     */
    void add(FourNewGoodsVO fourNewGoodsVO);

    /**
     * 获取商品详细信息
     *
     * @param csDbid
     * @return
     */
    List<FourNewGoods> getByCsDbId(FourNewGoodsVO fourNewGoodsVO, String csDbid);

    /**
     * 更新商品
     *
     * @param fourNewGoodsVO
     */
    void updateGoods(FourNewGoodsVO fourNewGoodsVO);

    /**
     * 获取商品特征值和图片
     *
     * @param fngDbid
     * @return
     */
    FourNewGoodsVO getFeatureAndPic(String fngDbid);

    /**
     * 批量提交商品审核
     *
     * @param approveDbIdVoList
     */
    void updateStatus(List<ApproveDbIdVO> approveDbIdVoList);

    /**
     * 根据店铺ID获取四新商品列表
     * @param fourNewGoods
     * @return
     */
    List<FourNewGoods> getListByCsDbId(FourNewGoods fourNewGoods);
}
